function showMsg(...data) {
	if (!data) {
		return
	} else if (data.length > 1) {
		setTimeout(() => {
			uni.showToast({
				title: data[0],
				icon: data[1],
				duration: 1000,
				position: 'top'
			})
		}, 1000)
	} else {
		setTimeout(() => {
			uni.showToast({
				title: data[0],
				icon: 'none',
				duration: 1000,
				position: 'top'
			})
		}, 1000)
	}

}



export default showMsg